package han.cirno.corrupt.components.classes

class ToggleList<T>(
    val list:List<T>,
    var selected:Int=0) {

    fun getSelected():T{
        return list[selected]
    }

    fun select(newValue:Int):T{
        selected=newValue
        return getSelected()
    }

}